package com.bjpowernode.services;
import com.bjpowernode.beans.DictionaryValue;
import com.bjpowernode.mapper.DictionaryValueMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.ArrayList;

@Service
public class DictionaryValueServicesImp implements DictionaryValueServices{

    @Autowired
    DictionaryValueMapper dictionaryValueMapper;

    @Override
    public ArrayList<DictionaryValue> getAll() {

        System.out.println("DictionaryValueServicesImp.....");


        return dictionaryValueMapper.getAll();
    }

    @Override
    public DictionaryValue get(String id) {
        return dictionaryValueMapper.get(id);
    }

    @Override
    public int add(DictionaryValue dictionaryValue) {
        return dictionaryValueMapper.add(dictionaryValue);
    }

    @Override
    public int edit(DictionaryValue dictionaryValue) {
        return dictionaryValueMapper.edit(dictionaryValue);
    }

    @Override
    public int del(String[] ids) {
        return dictionaryValueMapper.del(ids);
    }
}
